//package com.yyx.common;
//
//import lombok.extern.slf4j.Slf4j;
//import org.aspectj.lang.ProceedingJoinPoint;
//import org.aspectj.lang.annotation.Around;
//import org.aspectj.lang.annotation.Aspect;
//import org.aspectj.lang.annotation.Before;
//import org.aspectj.lang.annotation.Pointcut;
//import org.springframework.stereotype.Component;
////切面类
//@Slf4j
//@Aspect
//@Component
//public class myaspect {
////   可用
////    切入点
////    @Pointcut("execution(public void com.itheima.service.impl.BookServiceImpl.*(java.lang.Integer))")
////    @Pointcut("execution(* com.yyx.service.EmployeeService.*(..))")
//    @Pointcut("@annotation(com.yyx.common.annotation.SystemLog)")
//    private void pt(){ }
//
//    @Before("pt()")
//    public void before(){
//        log.info("666...before");
//        System.out.println("666666");
//    }
//
////    @Around("execution(* com.yyx.service.EmployeeService.*(..))")
//    @Around("pt()")
//    public Object recordTime(ProceedingJoinPoint joinPoint) throws Throwable {
//        long begin = System.currentTimeMillis();
//
//        Object result = joinPoint.proceed();
//
//        long end = System.currentTimeMillis();
//        log.info(joinPoint.getSignature()+"方法耗时：{}ms",end-begin);
//        return result;
//    }
//}
//
